package com.bestcem.xm.om.enums;

import lombok.Getter;

/**
 * 路由枚举类
 *
 * @author zq.ding <zq.ding@idiaoyan.com>
 * @version v1.0
 * @date 2021/7/30 17:01
 */
@Getter
public enum RouteEnum {
    /**
     * doc
     */
    QEM("QEM", CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE),
    /**
     * doc
     */
    SEM("SEM", CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE),
    /**
     * doc
     */
    AEM("AEM", CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE),
    /**
     * doc
     */
    AUTOINSIGHT("AUTO-INSIGHT", CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE),
    /**
     * doc
     */
    SELLER("SELLER", CEMIndustryCodeEnum.APPLICANT_TRADE_RETAIL),
    /**
     * doc
     */
    CATER("CATER", CEMIndustryCodeEnum.APPLICANT_TRADE_DIET),
    /**
     * doc
     */
    HEA("HEA", CEMIndustryCodeEnum.APPLICANT_TRADE_RETAIL),
    /**
     * doc
     */
    RETAILINSIGHT("RETAIL-INSIGHT", CEMIndustryCodeEnum.APPLICANT_TRADE_RETAIL),
    /**
     * doc
     */
    MALL("MALL", CEMIndustryCodeEnum.APPLICANT_TRADE_ESTATE),
    /**
     * doc
     */
    PROPERTY("PROPERTY", CEMIndustryCodeEnum.APPLICANT_TRADE_ESTATE),
    /**
     * doc
     */
    HOTEL("HOTEL", CEMIndustryCodeEnum.APPLICANT_TRADE_HOTEL),
    /**
     * doc
     */
    ESTATEINSIGHT("ESTATE-INSIGHT", CEMIndustryCodeEnum.APPLICANT_TRADE_HOTEL),
    /**
     * doc
     */
    TOUR("TOUR", CEMIndustryCodeEnum.APPLICANT_TRADE_TOURISM),
    /**
     * doc
     */
    LEISUREINSIGHT("LEISURE-INSIGHT", CEMIndustryCodeEnum.APPLICANT_TRADE_TOURISM),
    /**
     * doc
     */
    CULTURE("CULTURE", CEMIndustryCodeEnum.APPLICANT_TRADE_TOURISM),
    /**
     * doc
     */
    MOVIE("MOVIE", CEMIndustryCodeEnum.APPLICANT_TRADE_TOURISM),
    /**
     * doc
     */
    BANK("BANK", CEMIndustryCodeEnum.APPLICANT_TRADE_FINANCE),
    /**
     * doc
     */
    CREDIT("CREDIT", CEMIndustryCodeEnum.APPLICANT_TRADE_FINANCE),
    /**
     * doc
     */
    INS("INS", CEMIndustryCodeEnum.APPLICANT_TRADE_FINANCE),
    /**
     * doc
     */
    FININSIGHT("FIN-INSIGHT", CEMIndustryCodeEnum.APPLICANT_TRADE_FINANCE),
    /**
     * doc
     */
    CYBER("CYBER", CEMIndustryCodeEnum.APPLICANT_TRADE_INTERNET),
    /**
     * doc
     */
    EDU("EDU", CEMIndustryCodeEnum.APPLICANT_TRADE_INTERNET),
    /**
     * doc
     */
    PA("PA", CEMIndustryCodeEnum.APPLICANT_TRADE_HUMAN_SERVICES),
    /**
     * doc
     */
    UNI("UNI", CEMIndustryCodeEnum.APPLICANT_TRADE_COLLEGES),
    /**
     * doc
     */
    SURVEY("SURVEY", CEMIndustryCodeEnum.APPLICANT_TRADE_HUMAN_CONSULTATION),
    /**
     * doc
     */
    AD("AD", CEMIndustryCodeEnum.APPLICANT_TRADE_HUMAN_CONSULTATION),
    /**
     * doc
     */
    CONSULT("CONSULT", CEMIndustryCodeEnum.APPLICANT_TRADE_HUMAN_CONSULTATION),
    /**
     * doc
     */
    CARE("CARE", CEMIndustryCodeEnum.APPLICANT_TRADE_MEDICAL),
    /**
     * doc
     */
    CAREBEAUTY("CARE-BEAUTY", CEMIndustryCodeEnum.APPLICANT_TRADE_CARE_BEAUTY),
    /**
     * doc
     */
    TMTCAMPAIGN("TMT-CAMPAIGN", CEMIndustryCodeEnum.APPLICANT_TRADE_INTERNET),
    /**
     * doc
     */
    TMTINSIGHT("TMT-INSIGHT", CEMIndustryCodeEnum.APPLICANT_TRADE_INTERNET),
    /**
     * doc
     */
    TMTNPS("TMT-NPS", CEMIndustryCodeEnum.APPLICANT_TRADE_INTERNET),
    /**
     * doc
     */
    SEMDEMO("SEM-DEMO", CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE),
    /**
     * doc
     */
    AEMDEMO("AEM-DEMO", CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE),
    /**
     * doc
     */
    QEMDEMO("QEM-DEMO", CEMIndustryCodeEnum.APPLICANT_TRADE_VEHICLE),
    /**
     * doc
     */
    HEALTHCARE("HEALTHCARE", CEMIndustryCodeEnum.APPLICANT_TRADE_MEDICAL),
    /**
     * doc
     */
    SATISFACTION("SATISFACTION", CEMIndustryCodeEnum.APPLICANT_TRADE_SATISFACTION),
    /**
     * doc
     */
    VERSION("VERSION", CEMIndustryCodeEnum.APPLICANT_TRADE_VERSION);
    private final String route;
    private final CEMIndustryCodeEnum cemIndustryCodeEnum;

    RouteEnum(String route, CEMIndustryCodeEnum cemIndustryCodeEnum) {
        this.cemIndustryCodeEnum = cemIndustryCodeEnum;
        this.route = route;
    }

    public static RouteEnum getByIndex(String route) {
        for (RouteEnum status : values()) {
            if (status.getRoute().equals(route)) {
                return status;
            }
        }
        return null;
    }
}
